package com.ruoyi.project.system.wxnotice.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 通知对象 notice
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class WxNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 通知的标题 */
    @Excel(name = "通知的标题")
    private String title;

    /** 通知的内容 */
    @Excel(name = "通知的内容")
    private String content;

    /** 应用地址 */
    @Excel(name = "应用地址")
    private String url;

    /** 创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 推送的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推送的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 创建人，关联sys_user表 */
    @Excel(name = "创建人，关联sys_user表")
    private Long creator;

    /** 判断此条通知是否发送：0未发送  1已发送 */
    @Excel(name = "判断此条通知是否发送：0未发送  1已发送")
    private String isSend;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setIsSend(String isSend)
    {
        this.isSend = isSend;
    }

    public String getIsSend()
    {
        return isSend;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("url", getUrl())
            .append("addtime", getAddtime())
            .append("sendTime", getSendTime())
            .append("creator", getCreator())
            .append("isSend", getIsSend())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
